package com.godtree.constant;

import java.math.BigDecimal;
import java.util.regex.Pattern;

public class Constants {

  public final static String RICH_TEXT_SYSTEM_MESSAGE = "1";

  public final static String RICH_TEXT_ARTICLE = "2";

  public final static String RICH_TEXT_CAROUSEL = "3";

  public final static String AUTH_CODE_BAND_CHANGE_CHECK = "auth_code_band_change_check:"; // 修改绑定手机号验证身份

  public final static String AUTH_CODE_BAND_CHANGE = "auth_code_band_change:"; // 修改绑定

  public final static String AUTH_CODE_WECHAT_BAND = "auth_code_band:"; // 微信绑定手机号

  public final static String AUTH_CODE_APPLE_BAND = "auth_code_band:"; // 苹果绑定手机号

  public final static String AUTH_CODE_ACCOUNT_DELETE = "auth_code_account_delete:"; // 注销账户

  public final static String DEFAULT_AVATAR = "https://sspm-zhangjiakou.oss-cn-zhangjiakou.aliyuncs.com/avatar/avatar.jpg"; // 默认头像

  public final static String DEFAULT_NICKNAME = "火星树友"; // 默认昵称

  public final static String MEMBER_TOKEN_PRE = "member_token:";

  public final static String MEMBER_JPUSH_ID = "member_jpush_id:";

  public final static String SPLIT_CHAR = "@&#!";

  public final static Integer ARTICLE_LIKE_SCORE = 1;

  public final static Integer ARTICLE_COMMENT_SCORE = 5;

  public final static Integer ARTICLE_SHARE_SCORE = 5;

  public final static String MEMBER_MESSAGE_TIMER = "member_message_timer:"; // 用户登录计时器

  public final static String PUSHED_MEMBERS = "pushed_members"; // 已推送用户

  public final static String MEMBER_NOT_OPERATE_TIMER = "member_not_operate_timer:"; // 用户未操作计时器

  public final static String USER_LC = "userRankLC:"; // 用户排名数据最近点击

  public final static int[][] AGE_SCOPE = {{0, 18}, {19, 22}, {23, 28}, {29, 35}, {36, 45},
      {46, 200}};

  // 百分比
  public final static Pattern PATTERN_REGEX_PERCENT = Pattern.compile("^(-?\\d+)(\\.\\d+)?%$");

  // 12:00或99:16:30
  public final static Pattern PATTERN_REGEX_TIME = Pattern.compile(
      "^([0-6]\\d:[0-6]\\d)|(\\d+:[0-6]\\d:[0-6]\\d)$");

  public final static BigDecimal ONE_HUNDRED = new BigDecimal("100");

  public final static String ZERO_STR = "0";

  public final static String ONE_STR = "1";

  public final static String DROP_LIST = "[\"\",\"\",\"\"]";

  public final static String QUOTATION_STR = "\"{}\"";

  public static void main(String[] args) {
    System.out.println(Constants.PATTERN_REGEX_TIME.matcher("10:10:10").matches());
  }

}
